package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 属性候选值信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class AttrValueInsertRequestDTO extends BaseRequestDTO {
    /**
     * 属性CODE
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "属性CODE",required = true)
    private String attrCode;

    /**
     * 属性ID
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "属性ID",required = true)
    private Long attrId;

    /**
     * 属性KEY
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "属性候选值KEY",required = true)
    private String valKey;

    /**
     * 属性VALUE
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "属性候选值",required = true)
    private String valValue;

    /**
     * 备注
     *
     * @mbggenerated
     */
    @ApiParam(value = "备注")
    private String memo;

    /**
     * 排序
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "排序编号，降序",required = true)
    private Long sort = 0L;

    public void valid(){
        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
